<ion-header>
  <ion-toolbar color="primary">
  <ion-navbar>
    <ion-title>
      打尺记录
    </ion-title>
  </ion-navbar>
  </ion-toolbar>
</ion-header>

<ion-content>
  <ion-list>
    <ion-list-header>
      <h2>请根据实际打尺填写下列信息(左侧为标准值)</h2>
    </ion-list-header>
    <ion-item>
      <ion-label fixed>长度(cm)</ion-label>
      <ion-input type="text" value="{{stalength}}" disabled="true"></ion-input>
      <ion-input type="text" [(ngModel)]="length"  placeholder="请输入测量值"></ion-input>
    </ion-item>
    <ion-item>
      <ion-label fixed>宽度(cm)</ion-label>
      <ion-input type="text" value="{{stawidth}}" disabled="true"></ion-input>
      <ion-input type="text" [(ngModel)]="width"  placeholder="请输入测量值"></ion-input>
    </ion-item>
    <ion-item>
      <ion-label fixed>高度(cm)</ion-label>
      <ion-input type="text" value="{{stalength}}" disabled="true"></ion-input>
      <ion-input type="text" [(ngModel)]="height"  placeholder="请输入测量值"></ion-input>
    </ion-item>
    <ion-item>
      <ion-label fixed>重量(kg)</ion-label>
      <ion-input type="text" value="{{staweight}}" disabled="true"></ion-input>
      <ion-input type="text" [(ngModel)]="weight"  placeholder="请输入测量值"></ion-input>
    </ion-item>
    <ion-item>
      <ion-label fixed>备注</ion-label>
      <ion-input type="text" [(ngModel)]="description"></ion-input>
    </ion-item>
  </ion-list>

  <ion-row>
    <ion-col col-6 text-left>
      <button ion-button icon-left (click)="takePhoto()"><ion-icon name="camera"></ion-icon>&nbsp;拍摄照片</button>
    </ion-col>

    <ion-col col-6 text-right>
      <button ion-button icon-right [disabled]="disTag" (click)="upload()"><ion-icon name="cloud-upload"></ion-icon>&nbsp;上传照片</button>
    </ion-col>
  </ion-row>

  <ion-card>
    <img  [src]="imgData">
    <ion-card-content>
      <ion-card-title>
        已上传照片{{photoNumber}}张
      </ion-card-title>
      当前照片适用业务:打尺检验
    </ion-card-content>
  </ion-card>
</ion-content>
<ion-footer>
  <ion-row>
      <button ion-button full (click)="saveRecord()">保存</button>
  </ion-row>
</ion-footer>
